package com.asj.house.client;

import com.asj.house.config.feign.HouseSubscribeFeignConfig;
import com.asj.house.returns.RespTable;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author asj
 * @version V1.0.0
 * @description: 菜单管理 feign调用
 * @date 2021/02/04 09:29
 */
@FeignClient(name = "subscribeFeignClient", url = "${manage.url}", configuration = HouseSubscribeFeignConfig.class)
public interface HouseSubscribeClient {

    /**
     * 用户列表
     * @param page
     * @param limit
     * @return
     */
    @GetMapping("/house-subscribe/list")
    RespTable queryAllSubscribe(@RequestParam("page") Integer page,
                                @RequestParam("limit") Integer limit);

}
